package com.ssy.lingxi.system.config.init;

import com.ssy.lingxi.system.service.ISystemDataInitService;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 系统数据初始化
 * @author 万宁
 * @version 2.0.0
 * @date 2021-06-06
 */
@Configuration
@DependsOn("languageHolder")
public class SystemServiceInitConfig {
    @Resource
    private ISystemDataInitService systemDataInitService;

    @PostConstruct
    public void initSystem() {
        //初始化系统数据
        systemDataInitService.initSystemData();
    }
}
